
// 原有的全局样式保持不变
.qa-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;

  .wrapper-header {
    margin: 10px;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;

    .switch {
      display: flex;
      width: 500px;
      align-items: center;

      .text {
        font-size: 14px;
        color: #666;
        margin-left: 10px;
      }
    }

    .search {
      .van-button {
        margin-left: 10px;
      }
    }
  }

  .wrapper-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;

    /* 卡片内容布局 */
    .card-content {
      display: flex;
      align-items: center;
    }

    /* 图片样式 */
    .image {
      margin: 10px 14px 0 10px; /* 图片距离右侧边距 */
      border-radius: 4px; /* 圆角 */
      width: 100px; /* 正方形图片的宽度 */
      height: 100px; /* 正方形图片的高度 */
      object-fit: cover; /* 保持图片比例并覆盖容器 */
      display: block;
    }

    .wrapper-cell {
      &.highlight {
        background-color: rgba(255, 255, 255, 0.9) !important;
      }

      .title {
        display: flex;
        align-items: center;

        .avatar {
          background-color: #f5f5f5;
          width: 0px;
          height: 0px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        .content {
          margin-left: 0px;
          flex: 1;
          min-width: 0;
          display: flex;
          align-items: center;

          .name {
            font-size: 16px;
            font-weight: bold;
            margin-left: 0px;
          }
        }

        .footer {
          display: flex;
          align-items: center;

          .option {
            display: flex;
            align-items: center;
            opacity: 0;
            transition: all 0.3s;

            .text {
              font-size: 14px;
              color: #666;
              cursor: pointer;

              &:hover {
                color: rgba(209, 31, 9, 1);
              }
            }
          }

          .time {
            font-size: 14px;
            color: #999;
            margin-left: 20px;
          }
        }
      }

      .question {
        font-size: 14px;
        margin-top: 10px;
        color: #333;
      }
    }

    :deep(.van-cell-group) {
      background: transparent;

      .van-cell {
        padding: 15px 30px;
        background: transparent;
        transition: all 0.3s;

        &:hover {
          background: rgba(0, 0, 0, 0.05) !important;

          .option {
            opacity: 1;
          }
        }

        &:after {
          border-color: rgba(0, 0, 0, 0.1);
        }

        .van-button {
          margin-left: 10px;
        }
      }
    }
  }

  :deep(.van-popup) {
    transition: all 0.3s;
    cursor: pointer;
    background-color: rgba(209, 31, 9, 1);

    &:hover {
      background-color: rgba(209, 31, 9, 0.6);
    }
  }

  /* 手机端样式 */
  @media (max-width: 768px) {
    .wrapper-header {
      flex-direction: column;
      align-items: flex-start;
      padding: 5px 10px;

      .switch {
        width: 100%;
        margin-bottom: 5px;
      }

      .search {
        width: 100%;
      }

      .search .el-button {
        width: 100%;
      }
    }

    .wrapper-list .image {
      width: 60px;
      height: 60px;
      margin: 5px 10px 0 0px;
    }

    .wrapper-list .wrapper-cell .title {
      flex-direction: column;
      align-items: flex-start;
    }

    .wrapper-list .wrapper-cell .title .content {
      margin-top: 5px;
    }

    .wrapper-list .wrapper-cell .question {
      margin-top: 5px;
      font-size: 12px;
    }

    .wrapper-list .wrapper-cell .footer {
      flex-direction: column;
      align-items: flex-start;
      margin-top: 5px;
    }

    .wrapper-list .wrapper-cell .footer .option {
      margin-bottom: 5px;
    }

    .wrapper-list .wrapper-cell .footer .time {
      margin-left: 0px;
    }

    :deep(.van-cell-group) .van-cell {
      padding: 0px 0px;
    }
    
  }
}